package com.lanou.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.lanou.entity.Course;
import com.lanou.entity.CourseCollect;

import java.util.List;

public interface CourseCollectService {
    //增加收藏
    int addCourseCollect(CourseCollect courseCollect);
    //删除收藏
    int deleteCourseCollect(CourseCollect courseCollect);
    //    int updateCourseCollect(CourseCollect courseCollect);
    //根据用户id和文章查询用户是否收藏该课程
    CourseCollect getCourseCollectByCidAndUId(CourseCollect courseCollect);
    //根据用户id查询用户所有收藏课程
    PageInfo<CourseCollect> getCourseCollectByUserIdPage(Integer userId,int pageNum,int pageSize);
    //根据用户id和课程id修改支付状态
    int updateCourseCollect(CourseCollect courseCollect);
    //根据用户id查询用户所有收藏课程
    PageInfo<Course> getCollectCourseByUserId(Integer userId,String status,int pageNum,int pageSize);
}
